﻿<%@ Page Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="demos_ActionScript_Javascript_Default" %>

<asp:Content ContentPlaceHolderID="content" Runat="Server">
<script type="text/javascript">
	function getSWF(movieName) {
		if (navigator.appName.indexOf("Microsoft") != -1) {
			return window[movieName];
		}
		else {
			return document[movieName];
		}
	}

	function asCall(obj) {
		alert("Object ID: "+ obj.id +"\nObject Text: "+ obj.text);
	}
</script>
<code>
	<blue>ExternalInterface</blue>.call();
</code>
<div>
	<a href="#" onclick="">Call ActionScript!</a>
</div>

<div>
	Flash
	<embed src="Flash.swf?time=<%= DateTime.Now.Ticks %>"
		width="250" height="120" />
</div>
</asp:Content>

